From 47635a24342c9a6e5c2463e0252e115d04d3496b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 21 Jul 2011 02:41:10 +0200 Subject: [PATCH] themingengine: Return NULL for nonexistant theming engines his also makes the function conform to its documentation. --- gtk/gtkthemingengine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index 1e5d735d64..d076409315 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -1020,8 +1020,7 @@ gtk_theming_engine_load (const gchar *name) } } } - - if (!engine) + else { if (G_UNLIKELY (!default_engine)) default_engine = g_object_new (GTK_TYPE_THEMING_ENGINE, NULL); -- 2.30.2